From golang:alpine

ENV GO111MODULE=on\
    CGO_ENABLED=0\
    GOOS=linux\
    GOARCH=amd64

WORKDIR /app

COPY go.mod .
COPY go.sum .
RUN go mod tidy

COPY . .

RUN go build -o docker_go main.go
EXPOSE 8000

CMD ["./GO-TRAINING/project"]